home *** CD-ROM | disk | FTP | other *** search
- Path: news1.erols.com!newsmaster@erols.com
- From: Chris Cobb <ccobb@erols.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Object constuction in function call.
- Date: 17 Mar 1996 00:49:56 GMT
- Organization: CSEG, Inc.
- Message-ID: <4ifnjk$amc@news7.erols.com>
- References: <4icmqh$8g6@insosf1.netins.net> <4ie16n$pc1@sam.inforamp.net> <4ie8g4$h9j@nuacht.iol.ie>
- NNTP-Posting-Host: ccobb.erols.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22KIT (Windows; U; 16bit)
-
- goyra@iol.ie (David Byrden) wrote:
- >Well, unfortunately, this explanation is wrong. The TCorners created
- >as function parameters are "temporaries" and they have NO scope, for
- >the simple reason that they have no names. Their lifetime is defined to
- >end when you finish the STATEMENT in which they were created, not when
- ^^^^^^^^^
- The pending standard says that temporaries go
- away at the end of the largest enclosing
- expression...which may not alway be the same as
- the end of the current expression (e.g. an if
- expression within an if statement)
- >you leave the current block.
-
- Chris Cobb
-
-